// TempFiles.cpp

#include "StdAfx.h"

#include "TempFiles.h"

#include "Common/FileSystem/FileDir.h"
#include "Common/Stream/FileIO.h"

using namespace Common;

void CTempFiles::Clear()
{
	while(!Paths.empty())
  {
    FileSystem::DeleteFileAlways((LPCWSTR)Paths.back());
	Paths.pop_back();
  }
}


